package com.nacrtstudio.webgiftshop.model.shop.beans;

import java.util.Set;

import javax.persistence.Entity;
import javax.persistence.OneToMany;

import com.nacrtstudio.webgiftshop.core.beans.BaseBean;
import com.nacrtstudio.webgiftshop.model.shop.Category;
import com.nacrtstudio.webgiftshop.model.shop.Gift;
@Entity
public class CategoryBean extends BaseBean implements Category{
	private Long categoryID;
	private String categoryName;
	private String description;
	private Set<Gift> gifts;
	private boolean status;
	
	public Long getCategoryID() {
		return categoryID;
	}
	public void setCategoryID(Long categoryID) {
		this.categoryID = categoryID;
	}
	public String getCategoryName() {
		return categoryName;
	}
	public void setCategoryName(String categoryName) {
		this.categoryName = categoryName;
	}
	public String getDescription() {
		return description;
	}
	public void setDescription(String description) {
		this.description = description;
	}
	@OneToMany(mappedBy="category", targetEntity=GiftBean.class)
	public Set<Gift> getGifts() {
		return gifts;
	}
	public void setGifts(Set<Gift> gifts) {
		this.gifts = gifts;
	}
	public boolean isStatus() {
		return status;
	}
	public void setStatus(boolean status) {
		this.status = status;
	}
}
